import request from "@/apps/admin/units/request"
import {HttpResultData} from "@/types/project";

/**
 * 修改密码
 * @param data.old_password
 * @param data.password
 * @param data.password2
 * @returns {*}
 */
export const editUserPasswdApi = (data: any): Promise<HttpResultData<any>> => request(`/person/edit-passwd`, data, 'POST')


/**
 * 修改用户信息
 * @param data.old_password
 * @param data.password
 * @param data.password2
 * @returns {*}
 */
export const editUserDataApi = (data: any): Promise<HttpResultData<any>> => request(`/person/edit-data`, data, 'POST')
